<?php

class Admin_Form_Login extends Zend_Form {

    public function init() {


        $this->setName("login");
        $this->setMethod('post');

        $this->addElement('text', 'mail', array(
            'filters' => array('StringTrim', 'StringToLower'),
            'validators' => array(
                array('StringLength', false, array(0, 50)),
            ),
            'required' => true,
            'label' => 'mail',
        ));

        $this->addElement('password', 'password', array(
            'filters' => array('StringTrim'),
            'validators' => array(
                array('StringLength', false, array(0, 50)),
            ),
            'required' => true,
            'label' => 'Password',
        ));

     //   $this->addElement('submit', 'submit');
        
        $submit = new Zend_Form_Element_Submit('entrar');
        $submit->setLabel('Entrar');
        $submit->setAttrib('class', 'btn btn-primary');

        $this->addElement($submit);
        $this->getElement("mail")->removeDecorator("DtDdWrapper");
        
    }

}